package com.kui.service;

import java.util.List;

import com.kui.dao.UserDao;
import com.kui.entity.User;

public class UserService {
	
	UserDao dao = new UserDao();

	public User findByNameAndPassword(String name, String password) {
		return dao.findByNameAndPassword(name,password);
		
		
	}

	public User findByName(String name) {
		return dao.findByName(name);
	}

	public void sign(User u) {
		dao.sign(u);
		
	}

	public void update(User u) {
		dao.update(u);
		
	}

	public List<User> findAll() {
		// TODO Auto-generated method stub
		return dao.findAll();
	}

	public User findById(String uid) {
		// TODO Auto-generated method stub
		return dao.findById(uid);
	}

	public void updateRole(User u) {
		dao.updateRole(u);
		
	}

	public void del(User u) {
		dao.del(u);
		
	}
	

}
